package com.example.web.webauth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by YangGang on 2021/11/23 15:16。
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    @PostMapping("/in")
    public Object in() {
        System.out.println("/login/oauth/token >>> loginLogin");
        return "forward:/oauth/token";
    }

    @PostMapping("/out")
    public Object out() {
        System.out.println("/login/oauth/token >>> loginLogin");
        return "forward:/oauth/token";
    }


    @GetMapping("/getVerificationCode")
    public Object getCheckCode() {
        System.out.println("/login/oauth/token >>> loginLogin");
        return "forward:/oauth/token";
    }

}
